/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Acknowledgement Detail Syntax Error Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19639 (C-0-T19638-A19639-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getAcknowledgementDetailSyntaxErrorCode()
 * @model extendedMetaData="name='AcknowledgementDetailSyntaxErrorCode'"
 * @generated
 */
public enum AcknowledgementDetailSyntaxErrorCode implements Enumerator {
	/**
	 * The '<em><b>SYN102</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN102_VALUE
	 * @generated
	 * @ordered
	 */
	SYN102(0, "SYN102", "SYN102"),

	/**
	 * The '<em><b>SYN104</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN104_VALUE
	 * @generated
	 * @ordered
	 */
	SYN104(1, "SYN104", "SYN104"),

	/**
	 * The '<em><b>SYN110</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN110_VALUE
	 * @generated
	 * @ordered
	 */
	SYN110(2, "SYN110", "SYN110"),

	/**
	 * The '<em><b>SYN112</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN112_VALUE
	 * @generated
	 * @ordered
	 */
	SYN112(3, "SYN112", "SYN112"),

	/**
	 * The '<em><b>SYN100</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN100_VALUE
	 * @generated
	 * @ordered
	 */
	SYN100(4, "SYN100", "SYN100"),

	/**
	 * The '<em><b>SYN101</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN101_VALUE
	 * @generated
	 * @ordered
	 */
	SYN101(5, "SYN101", "SYN101"),

	/**
	 * The '<em><b>SYN103</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYN103_VALUE
	 * @generated
	 * @ordered
	 */
	SYN103(6, "SYN103", "SYN103");

	/**
	 * The '<em><b>SYN102</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN102</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN102
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN102_VALUE = 0;

	/**
	 * The '<em><b>SYN104</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN104</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN104
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN104_VALUE = 1;

	/**
	 * The '<em><b>SYN110</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN110</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN110
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN110_VALUE = 2;

	/**
	 * The '<em><b>SYN112</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN112</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN112
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN112_VALUE = 3;

	/**
	 * The '<em><b>SYN100</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN100</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN100
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN100_VALUE = 4;

	/**
	 * The '<em><b>SYN101</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN101</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN101
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN101_VALUE = 5;

	/**
	 * The '<em><b>SYN103</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYN103</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYN103
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYN103_VALUE = 6;

	/**
	 * An array of all the '<em><b>Acknowledgement Detail Syntax Error Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final AcknowledgementDetailSyntaxErrorCode[] VALUES_ARRAY =
		new AcknowledgementDetailSyntaxErrorCode[] {
			SYN102,
			SYN104,
			SYN110,
			SYN112,
			SYN100,
			SYN101,
			SYN103,
		};

	/**
	 * A public read-only list of all the '<em><b>Acknowledgement Detail Syntax Error Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<AcknowledgementDetailSyntaxErrorCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Acknowledgement Detail Syntax Error Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailSyntaxErrorCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AcknowledgementDetailSyntaxErrorCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Acknowledgement Detail Syntax Error Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailSyntaxErrorCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AcknowledgementDetailSyntaxErrorCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Acknowledgement Detail Syntax Error Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AcknowledgementDetailSyntaxErrorCode get(int value) {
		switch (value) {
			case SYN102_VALUE: return SYN102;
			case SYN104_VALUE: return SYN104;
			case SYN110_VALUE: return SYN110;
			case SYN112_VALUE: return SYN112;
			case SYN100_VALUE: return SYN100;
			case SYN101_VALUE: return SYN101;
			case SYN103_VALUE: return SYN103;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private AcknowledgementDetailSyntaxErrorCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //AcknowledgementDetailSyntaxErrorCode
